import BaseModel from './baseModel'
import { get } from '../ajax/axios'
import { Api } from '../ajax/api'

// 首页轮播图对象
class HomeLinkModel extends BaseModel {

  // 标题
  public title = ''
  // 链接
  public link = ''

  static async getModels() {
    const json = await get(Api.homeLink.all) as any
    return this.modelsWithArr(json)
  }
}

export default HomeLinkModel
